package org.smog.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * 带String 类型UUDId 的实体基类
 * @Description: Created by IntelliJ IDEA.
 * @project_name: smogTemp
 * @time: 2020-05-15 16:37
 * @email: 17685306043@163.com
 * @author: huangZhongYao
 */
@Data
public abstract class AbstractUUIDEntity implements IEntity<String> {

    private static final long serialVersionUID = 2041413692635936121L;
    @TableId(
            type = IdType.ASSIGN_UUID
    )
    String id;

    @Override
    public String getId() {
        return id;
    }
}
